package com.nut.course.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nut.course.api.req.ChangePasswordReq;
import com.nut.course.api.req.LoginReq;
import com.nut.course.api.req.RegisterReq;
import com.nut.course.api.resp.UserAuth;
import com.nut.course.common.Result;
import com.nut.course.entity.Partner;
import java.util.Set;

//机构服务
public interface PartnerService {

    Result register(RegisterReq registerReq);

    Result<UserAuth> login(LoginReq loginReq);

    Result changePassword(ChangePasswordReq changePasswordReq);

    Result<IPage<Partner>> list(String status, String name, Integer pageNo, Integer pageSize);

    Result<Partner> getById(Integer id);

    Result updateById(Partner partner);

    Result deleteByIds(Set<Integer> ids);

}
